<script setup lang="ts">
function btnClick(): void {
  const win = window as any;
  win.microApp.dispatch({ selectedId: new Date().getMilliseconds() });
}
</script>

<template>
  <div>
    <button @click="btnClick">SELECT</button>
  </div>
</template>

<style scoped></style>
